<?php

namespace app\beautiful\model\logs;

use app\common\model\CommonModel;

use app\beautiful\model\member\MemberOnceCardModel;



class ProjectWriteOffModel extends CommonModel{

    protected  $name = 'beautiful_project_write_off';

    protected  $pk   = 'write_off_id';



    public function onceCard()

    {

        return $this->hasOne(MemberOnceCardModel::class,'member_once_card_id','member_once_card_id');

    }

     public function getOperateHiddenMobileAttr($value,$data)

    {

        return $data['operate_mobile'] ? yc_phone($data['operate_mobile']) : '';

    }

}

